# -*- coding: utf-8 -*-
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider,Rule

#使用ｒｅｄｉｓ去重
from scrapy.dupefilters import RFPDupeFilter
from example.items import youyuanItem
import re

class YouyuanSpider(CrawlSpider):
    name = 'youyuan'
    allowed_domains=['youyuan.com']
    #有缘我那个的列表页
    start_urls=['http://n.youyuan.com/v20/index.html']
    #搜索页面匹配规则，根据response提取链接

